{extend name="base"}
{block name="title"}服务详情{/block}
{block name="head"}
<style>
input[type=text], textarea, select, option {border:solid 1px #808080;}
select{width:142px; height:22px; line-height:22px;}
textarea{word-break:break-all; height:200px; width:100%}
input[type=text]{width:140px; height:20px; line-height:20px;}
input[type=text]:focus, textarea:focus, select:focus {outline:none; border:solid 1px #8080C0}
body.mainbody{padding:0; margin:0;}
table.border-table{width:500px; position:relative; margin:10px auto;}
</style>
{/block}
{block name="body"}
<body class="mainbody">
<form>
  <table class="border-table">
    <tr>
      <th>ServerID:</th><td>{$data.ServerID ?? '自增'}</td>
      <th>渠道标识:</th><td>
        <select name="Channel" data-auto="0">{php}$eax = $data['Channel'] ?? 0;{/php}
          {volist name="CHANNELS" id="val"}
          <option value="{$key}"{eq name="eax" value="$key"} selected{/eq}>[{$key}]{$val.Name}</option>
          {/volist}
        </select>
      </td>
    </tr>
    <tr>
      <th>游戏类型:</th><td>
        <select name="Type" data-auto="0">{php}$eax = $data['Type'] ?? 0;{/php}
          {volist name="GO_SERVER_TYPE" id="val"}
          <option value="{$key}"{eq name="eax" value="$key"} selected{/eq}>[{$key}]{$val}</option>
          {/volist}
        </select>
      </td>
      <th>所属游戏:</th><td>
        <select name="KindID" data-auto="0">{php}$eax = $data['KindID'] ?? 0;{/php}
          {volist name="GAME_KIND" id="val"}
          <option value="{$key}"{eq name="eax" value="$key"} selected{/eq}>[{$key}]{$val}</option>
          {/volist}
        </select>
      </td>
    </tr>
    <tr>{php}$eax = $data['Status'] ?? 0;{/php}
      <th>服务名称:</th><td><input type="text" name="Title" autocomplete="off" value="{$data.Title??''}" /></td>
      <th>运行状态:</th><td class="gss_{$eax}">[{$eax}]{$GO_SERVER_STATUS[$eax] ?? '--'}</td>
    </tr>
    <tr>
      <th>创建时间:</th><td>{$data.CreateTime??''}</td>
      <th>更新时间:</th><td>{$data.UpdateTime??''}</td>
    </tr>
    <tr>
      <th>附加JSON:</br/><a target="_blank" href="__STATIC__/houtai/demo-gameserver.txt">查看示例</a></th>
      <td colspan="3" style="padding:0;"><textarea name="CustomJSON">{$data.CustomJSON??''}</textarea></td>
    </tr>
  </table>
</form>
</body>
{/block}